Added the functionality of a user being able to sign in