make a method for setting password