Added basic validation for post fields