Implemented MD5 encryption on passwords

Improved code readability.