adding singin and signout functions