Added login by email code.