added password checker and hashing