Fixed a bug where the insert query for a user would be sent even if some fields where left blank.