Fixed the form validation for portfolios page