Updating with the login logic

updating with the login pages