Fix mobile registration form issues

Thanks @evandro_zanatta for the report!