Fix for user registration inconsistent types