fixed problem where signed in user could still sign in and profile page shows correct picture