added validation to deadline field in form