updating...
implemented login and signout functions