Fix all php code for user table.