signin and signout functionality working