Added e-mail login functionality