wrote tests for password and confirmation