moved the sign out functionality to be an ajax call