Authentication and encryption

- implemented authentication routine.
- implemented MD5 password encryption.