Pass tests for duplicate email, encrypt password