Moved error logic for new view to partial in shared/