Added unique index to user table
More user validation