Added the checktime function

The checktime function solves the previous problem of login.sh processes never dying. It also kills the parent, so the user can't idle for 60 seconds then gain shell access to the host user account.