added few comments and checks for root login
added the missed ;