Added message when sending email and logout now works