Updated authentication to utilise roles.