added signin/signout functionality