Updated the code to have sign in capabilities.