moved error display to a partial