Add user registration logic