added authentication for password