fixes sql when trying to register a user and no tokes is being set