Added user authentication to backend.