Automatically hashes password