fix a bug on task page timer when refresh page using ajax
add missing else in Login page
submit restriction of task