added login procedure
login proc
added network check
Few minor changes