added alert for login