Define password method