Implemented sign in & sign out functionality