fixed viewperms in terms of form validation. after save screen now redirects to Items or by repository config.