Added login listner that sets automatic logut time