fixed DB Null value violation on registration