refactoring sign up page