txtDueDate has to be a date
using 'moment' for date manipulation/formatting
redirect user to the correct link if he has no community