adding sign in and signout process with persistent login