added alert for invalid login and comments