Added an assert to check if session is present when user signed up