added separate encoding function for the password
Merge branch 'master' of https://github.com/alexm92/spital