registerUser and activateUser have been optimized