Added authentication to controllers