authentication and sign in/out functionality  added