Added redirect to home screen if user is logged in.