commented last login
added few checks
this cgi will be re-written
this cgi will be re-written