Implemented password authentication