Fix login with invalid mail