Adding authentication to dashboard controller