Finished the signin/signout functionality