Implemented password authenticatiotn