adjusted email settings
changed logout to logout then login