Feature #4149 : fixing a bad SQL query construction after adding new information of state of user account into user data table.

- fixing also a problem about user information updating around password