added custom login listner