Auto redirect on add and edit pages, shown errors on form