getting md5 hash of user password moved to library