Added sign-out logic. Completed secure sign-up/in/out