fix invalid repo error and forms for error pages