Add functionality for sign in and sign out