implemented password encription