registerUser() implementation.