adds authorization to user pages and a dropdown menu