unit test passing for validation of presence and uniqueness of login credentials