Added user authentication with working roles