changed from md5 to sha1 encryption