refactor registration e2e tests for client side validation