added comments
added login check using data script