Ensure user is redirected if they are not authenticated
Move states into their own module