Added user registration form logic