addtask.php - correct time comparison
usersettings.js - changes in successful way of ajax query.