Add margin and clear to errors