move the errors block to a partial view