Putting the login verification and the profile page correctly