Fixes error thrown in case no salt value or hashed password is stored in the mongo db collection. Closes #27