Implemented functionality for sign in user