rewrite registration form