sign up form refactor