manually log user in after successful sign up
added logout and improved commenting