Implemented hashPassword with promises before saving model.