First off, you must add the condition to check if the user is logged in in the workflow tab, not the page’s conditions tab

You could do it like

when user is logged out > redirect to x page

Also, do not use states to log in the user. Use the log in user action and redirect to x page