Refactoring portfolio page with authentication and authorization