Updated password controller to use scalate