override method for setting password attribute added to the Users model so that passwords are always hashed when they are saved