writing tests for errors on user registration form