Fix login. Add check for valid e-mail