Add has secure password
Add test for email case