Fixed due_date=true bug

Error message:
  NoMethodError (undefined method `<' for true:TrueClass):
    app/models/issue.rb:571:in `validate_issue'

Also refactored (ruby-style-guide) to prevent bugs similar to due_date bug