finished tests, refactored register form