added user authentication but have an error