Implemented password encryption and correct check to SLM