Added md5 encryption and updated the index

Added an md5 function used to encrypt a newly created user's password
upon registration in the index