Added email login functionality.