fixed error messages and warnings in post