method for setting user password