Refactoring registration page