refactor registration e2e test for server side validation