Added authentication to dashboard generation