added functionality to remember email for a session using turnary operator