Added a working redirect in the signin page if the user is already logged in