Added user registration validation